package org.jsrml.core.purchaser.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionGroup;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@SuppressWarnings("serial")
@QueryConfig(daoBeanId = "companyService")
public class CompanyQO extends BaseQO<String> {
	
	@QueryConditionGroup(value="group1")
	@QueryCondition(name = "baseInfo.companyName", type=QueryConditionType.LIKE_ANYWHERE)
	private String name;

	@QueryConditionGroup(value="group1")
	@QueryCondition(name = "baseInfo.companyCode", type=QueryConditionType.LIKE_ANYWHERE)
	private String code;
	
	@QueryCondition(name = "address.province")
	private String province;
	
	@QueryCondition(name = "address.city")
	private String city;
	
	@QueryCondition(name = "address.area")
	private String area;

	@QueryCondition(name = "status.remove")
	private Boolean remove;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public Boolean getRemove() {
		return remove;
	}

	public void setRemove(Boolean remove) {
		this.remove = remove;
	}
	
}
